package aecs

import (
	"fmt"

	"github.com/aliyun/alibaba-cloud-sdk-go/services/ecs"
)

func (c *Client) ModifyInstanceAttribute(req *ecs.ModifyInstanceAttributeRequest) (*ecs.ModifyInstanceAttributeResponse, error) {
	client := c.Client
	req.Method = "GET"
	req.Port = c.Port

	response, err := client.ModifyInstanceAttribute(req)
	
	if err != nil {
		return nil, fmt.Errorf("Error creating instance %w", err)
	}

	return response, nil
}
